# $Id: PKGBUILD 150564 2012-02-18 14:45:45Z pierre $
# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Contributor: Caleb Cushing <xenoterracide@gmail.com>

pkgname=perl-ipc-system-simple
_realname=IPC-System-Simple
pkgver=1.21
pkgrel=2
pkgdesc="Run commands simply, with detailed diagnostics"
arch=('any')
license=('PerlArtistic' 'GPL')
depends=('perl')
url="http://search.cpan.org/dist/IPC-System-Simple"
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/P/PJ/PJF/$_realname-$pkgver.tar.gz")
md5sums=('8215b62fe1b8447b99e17861e2255288')

build() {
  cd "$srcdir/$_realname-$pkgver"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir/$_realname-$pkgver"
  make DESTDIR="$pkgdir" install
}
